package com.swt.service.T_service.impl;

import com.swt.dao.Tdao.CoursePKDao;
import com.swt.domain.Course;
import com.swt.service.T_service.CoursePKService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service(value = "CoursePKService")
@Transactional
public class CoursePKServiceImpl implements CoursePKService {
    @Resource(name = "CoursePKDao")
    private CoursePKDao coursePKDao;
//排课表添加
    @Override
    public boolean CoursePKServiceAdd(Course course,int clubClubId) {
        return  coursePKDao.coursePKDaoAdd(course,clubClubId);
    }

    @Override
    public List<Course> CoursePKServiceQuery(int courseClubid,int clubClubId) {
        return coursePKDao.coursePKDaoQuery( courseClubid,clubClubId);
    }

    @Override
    public List<Course> coursePKServiceUPdateQuery(Course course,int clubClubId) {
        return coursePKDao.coursePKDaoUPdateQuery(course,clubClubId);
    }

    @Override
    public boolean coursePKServiceUPdate(Course course) {
        return coursePKDao.coursePKDaoUPdate(course);
    }

    @Override
    public boolean coursePKServiceDelete(int id) {
        return coursePKDao.coursePKDaoDelete(id);
    }

    @Override
    public List<Course> coursePKQueryTimeService(String courseDate, String courseTime,int clubClubId) {
        return coursePKDao.coursePKQueryTime(courseDate,courseTime,clubClubId);
    }

    public CoursePKDao getCoursePKDao() {
        return coursePKDao;
    }

    public void setCoursePKDao(CoursePKDao coursePKDao) {
        this.coursePKDao = coursePKDao;
    }
}
